home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Graphics_Utils / PovRay_FPU / POVRay3 / include / glass.inc < prev    next >
Text File  |  1998-06-24  |  3KB  |  154 lines

  1. #ifdef(Glass_Inc_Temp)
  2. // do nothing
  3. #else
  4. #declare Glass_Inc_Temp=version
  5. #version 3.0
  6.  
  7. #ifdef(View_POV_Include_Stack)
  8. #   debug "including glass.inc\n"
  9. #end
  10.  
  11. /*
  12.               Persistence of Vision Raytracer Version 3.0
  13.                       Glass finishes and textures
  14. */
  15.  
  16. // Glass Finishes
  17. #declare F_Glass1 =
  18. finish {
  19.     specular 1
  20.     roughness 0.001
  21.     ambient 0
  22.     diffuse 0
  23.     refraction 1   
  24.     reflection 0.1
  25.     ior 1.5
  26. }
  27.  
  28. #declare F_Glass2 = 
  29. finish {
  30.     ambient 0
  31.     diffuse 0
  32.     reflection 0.5
  33.     refraction 1
  34.     ior 1.5
  35.     phong 0.3
  36.     phong_size 60
  37. }
  38.  
  39. #declare F_Glass3 =
  40. finish  {
  41.     ambient 0.1
  42.     diffuse 0.1
  43.     reflection 0.1
  44.     refraction 1
  45.     ior 1.45
  46.     specular 0.8
  47.     roughness 0.003
  48.     phong 1
  49.     phong_size 400
  50. }
  51.  
  52. #declare F_Glass4 =
  53. finish {
  54.     ambient 0.1
  55.     diffuse 0.1
  56.     reflection .25
  57.     refraction 1
  58.     ior 1.5
  59.     specular 1
  60.     roughness 0.001
  61. }
  62.  
  63. // Glass Textures
  64.  
  65. // Simple clear glass
  66. #declare T_Glass1 =
  67. texture {
  68.     pigment { color rgbf<1.0, 1.0, 1.0, 0.7> }
  69.     finish  { F_Glass1 }
  70. }
  71.  
  72. // More like an acrylic plastic
  73. #declare T_Glass2 =
  74. texture {
  75.     pigment { color rgbf<1.0, 1.0, 1.0, 1.0> }
  76.     finish  { F_Glass2 }
  77. }
  78.  
  79.  
  80. // An excellent lead crystal glass!
  81. #declare T_Glass3 =
  82. texture {
  83.     pigment { color rgbf <0.98, 0.98, 0.98, 0.9> }
  84.     finish { F_Glass3 }
  85. }
  86.  
  87. #declare T_Glass4 =
  88. texture {
  89.     pigment { color rgbf <0.98, 1.0, 0.99, 0.75> }
  90.     finish { F_Glass4 }
  91. }
  92.  
  93.  
  94. #declare T_Old_Glass=
  95. texture {
  96.     finish { F_Glass4 }
  97.     pigment { color rgbf <0.8, 0.9, 0.85, 0.85> }
  98. }
  99.  
  100. #declare T_Winebottle_Glass=
  101. texture {
  102.     finish { F_Glass4 }
  103.     pigment { color rgbf <0.4, 0.72, 0.4, 0.6> }
  104. }
  105.  
  106. #declare T_Beerbottle_Glass=
  107. texture {
  108.     finish { F_Glass4 }
  109.     pigment { color rgbf <0.7, 0.5, 0.1, 0.6> }
  110. }
  111.  
  112. // A few color variations on Norm's glass
  113. // Ruby glass
  114. #declare T_Ruby_Glass =
  115. texture {
  116.     finish { F_Glass4 }
  117.     pigment { color rgbf <0.9, 0.1, 0.2, 0.8> }
  118. }
  119.  
  120. #declare T_Green_Glass =
  121. texture {
  122.     pigment { color rgbf <0.8, 1, 0.95, 0.9> }
  123.     finish { F_Glass3 }
  124. }
  125.  
  126. #declare T_Dark_Green_Glass=
  127. texture {
  128.     finish { F_Glass4 }
  129.     pigment { color rgbf <0.1, 0.7, 0.8, 0.8> }
  130. }
  131.  
  132. #declare T_Yellow_Glass=
  133. texture {
  134.     finish { F_Glass4 }
  135.     pigment { color rgbf <0.8, 0.8, 0.2, 0.8> }
  136. }
  137.  
  138. // Orange/Amber glass
  139. #declare T_Orange_Glass=
  140. texture {
  141.     finish { F_Glass4 }
  142.     pigment { rgbf <1.0, 0.5, 0.0, 0.8> }
  143. }
  144.  
  145. // Vicks bottle, glass
  146. #declare T_Vicksbottle_Glass=
  147. texture {
  148.     finish { F_Glass4 }
  149.     pigment { color rgbf <0.1, 0.15, 0.5, 0.9> }
  150. }
  151.  
  152. #version Glass_Inc_Temp
  153. #end
  154.